<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
</head>

<body>
</body>
<script>
  // 前端和后端双方规定一个函数用于接收数据，前端通过script标签去请求后端，后端返回规定的函数中的数据
  window.foo = function foo(data, x) {
    console.log(data, x);
  }
</script>
<script src="http://127.0.0.1:5502/%E9%9D%A2%E8%AF%95%E9%A2%98/jsonp/index.js?id=1"></script>

</html>